$(function() {
	$('.btn-selectall').click(function() {
		$('#fragment-list').uiTable('selectAll');
	});
	$('.del-all-fragment').click(function() {
		var ids = $('#fragment-list').uiTable('selected');
		if (ids.length == 0) {
			alert('请选择要删除的代码');
			return false;
		}
		if (!confirm('你确定要删除所选的代码片断?')) {
			return false;
		}
		window.location.href = './?Ctlr=DelFrag&fid=' + ids.join(',');
		return false;
	});
});